import api from "@/libs/request";

/**
 * 获取默认协议
 */
export const getInitAssition = (type, data: any) => {
  return api.get(`/shipping/get/default/pact/manage/content/${type}`, data);
};

/**
 * 获取服务信息
 */
export const getAssition = (data: any) => {
  return api.get(`/shipping/get/pact/manage`, data);
};

/**
 * 更新协议信息
 */
export const updateAssition = (data: any) => {
  return api.post(`/shipping/update/pact/manage`, data);
};
